package GUI;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
/**
 * view the information of regular and rated book borrows reports 
 * @author Lidor
 *
 */
@SuppressWarnings("serial")
public class RegBookBorrowReportGUI extends JPanel {
	
	public MainFrame mf;
	public JLabel label;
	public JLabel label_1;
	public Chart distChart;
	public JLabel lblRegularBookBorrows1;
	public JLabel lblRegularBookBorrows;

	/**
	 * Create the panel.
	 * @param M main frame of the program
	 */
	public RegBookBorrowReportGUI(MainFrame M) {
		setLayout(null);
		mf=M;
		lblRegularBookBorrows = new JLabel("Regular Book Borrows Report");
		lblRegularBookBorrows.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblRegularBookBorrows.setBounds(166, 12, 306, 15);
		lblRegularBookBorrows.setVisible(false);
		add(lblRegularBookBorrows);
		lblRegularBookBorrows1 = new JLabel("Rated Book Borrows Report");
		lblRegularBookBorrows1.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblRegularBookBorrows1.setBounds(180, 12, 306, 15);
		lblRegularBookBorrows1.setVisible(false);
		add(lblRegularBookBorrows1);
		
		JLabel lblAverage = new JLabel("Average:");
		lblAverage.setBounds(46, 67, 82, 15);
		add(lblAverage);
		
		JLabel lblMedian = new JLabel("Median");
		lblMedian.setBounds(46, 109, 51, 15);
		add(lblMedian);
		
		label = new JLabel("");
		label.setBounds(138, 67, 51, 15);
		add(label);
		
		label_1 = new JLabel("");
		label_1.setBounds(138, 109, 51, 15);
		add(label_1);
		
		ImageIcon img = new ImageIcon(getClass().getResource("/util/grad2.jpg"));
		JLabel picLabel = new JLabel(img);
		picLabel.setLocation(0, 0);
		picLabel.setSize(715, 597);
		add(picLabel);

	}
	
	/**
	 * initialize all the text fields
	 */
	public void init(){
		label.setText("");
		label_1.setText("");
	}

}
